
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
        <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport">
        <title>小马时贷下载</title>
        <style class="reset">body{font-family:Arial,Helvetica,sans-serif;font-size:1em;-webkit-text-size-adjust:none}input,select,textarea{font-size:100%;font-family:inherit}body,button,dd,dl,dt,form,h1,h2,h3,h4,h5,h6,html,input,ol,p,textarea,ul{-webkit-box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);word-wrap:break-word;word-break:break-all;padding:0;margin:0}h4,h5,h6{font-size:1em}ol,ul{padding-left:0;list-style-type:none}img{border:0}a{text-decoration:none;outline:0}input,textarea{outline:0;-webkit-appearance:none;border-radius:0}i{font-style:normal}button{outline:0;border:0;background:0 0}
        </style>
        <style type="text/css">
            body{font-family:Arial,Helvetica,sans-serif;font-size:1em;-webkit-text-size-adjust:none}input,select,textarea{font-size:100%;font-family:inherit}body,button,dd,dl,dt,form,h1,h2,h3,h4,h5,h6,html,input,ol,p,textarea,ul{-webkit-box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);word-wrap:break-word;word-break:break-all;padding:0;margin:0}h4,h5,h6{font-size:1em}ol,ul{padding-left:0;list-style-type:none}img{border:0}a{text-decoration:none;outline:0}input,textarea{outline:0;-webkit-appearance:none;border-radius:0}i{font-style:normal}button{outline:0;border:0;background:0 0}
            html {height: 100%;}
            body {position: relative; min-height: 100%; padding-top: 1px; background-color: #fff;}
            .btn_app {color: #ffffff; background: #ffaa1e url(/static/img/3g/getapp_i_download.png) no-repeat 8px center; background-size: 30px; box-shadow: 0 2px 0 0 #da911a; margin-top: 6px;}
            .btn_app_word {margin-left: 48px;}
            .i-mobile {width: 12px; height: 12px;display: inline-block;vertical-align: -3px;background:url(/static/img/3g/getapp_call.png) no-repeat; background-size: 12px;}
            .weixin-android-wrap {padding:6px 20px; display: none}
            .weixin-android-tips {color:#6b450a; border: 1px solid #dcdcdc; border-radius: 9px;padding: 10px 5px 10px 10px;font-size: 15px;background: #ffffff url(/static/img/3g/Android_icon98.png) no-repeat 5px center; background-size: 48px;  margin: 0 auto;}
            .weixin-android-arrow {text-align: right;}
            .weixin-android-open {color:#fe4d3d}
            .refresh-tip {color: #898989;width: 100%;margin: auto;position: absolute;top: 40%;text-align: center;display:none}
            .ios-special{width: 70%;height: 100px;margin: 0px auto;margin-top: 45px;}
            .ios-special img{width: 100%;}
            .ios-special a{display: block;width: 66%;height: 45px;margin: 0px auto;margin-top: 29px;text-align: center;line-height: 45px;font-size: 18px;margin-bottom: 42px;}
        </style>
    </head>
    <body style="background: rgb(248, 248, 248);">
        <div id="refresh-tip" class="refresh-tip" style="display: block;">页面无反应、下载失败？<br>建议您使用微信扫描二维码，扫描成功后根据页面提示进行下载（最好使用系统自带浏览器）</div>
        
        <div class="weixin-android-wrap" id="weixintips" style="display: none;">
       		<div class="weixin-android-arrow">
                <img src="images/getapp_arrow3.png" width="30">
            </div>
            <div class="weixin-android-tips">下载小马时贷，请点击右上角选择［在浏览器中打开]</div>
        </div>
        <script src="libs/jquery-1.11.2.min.js"></script>
        <script type="text/javascript">			
			var u = navigator.userAgent;
			if(/micromessenger/.test(u.toLowerCase())){
				$("#refresh-tip").hide();
				$("#weixintips").show();
			}else{
				var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
				var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
				if(isAndroid){
					window.location.href="download/xmsd_170427.apk";
				}else if(isiOS){
					//TODO
				}					
			}

			
		</script>
    </body>
</html>